package com.example.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* <p>
* 管理员信息表
* </p>
*
* @author whh
* @since 2020-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JjsmAdmin对象", description="管理员信息表")
public class JjsmAdminEntity implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员UUId")
    @TableId(value = "admin_user_id", type = IdType.ASSIGN_UUID)
    private String adminUserId;

    @ApiModelProperty(value = "管理员账号")
    @TableField("admin_user_account")
    private String adminUserAccount;

    @ApiModelProperty(value = "管理员密码")
    @TableField("admin_user_password")
    private String adminUserPassword;

    @ApiModelProperty(value = "管理员名称")
    @TableField("admin_user_name")
    private String adminUserName;

    @ApiModelProperty(value = "管理员状态，0是开启，1是关闭整个系统不可用")
    @TableField("admin_user_status")
    private Integer adminUserStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("admin_user_create_time")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime adminUserCreateTime;

    @ApiModelProperty(value = "商家联系方式")
    @TableField("admin_user_phone")
    private String adminUserPhone;

    @ApiModelProperty(value = "商家地址")
    @TableField("admin_user_address")
    private String adminUserAddress;

    @ApiModelProperty(value = "管理员状态1为超级管理员，0为普通商家")
    @TableField("admin_user_type")
    private Integer adminUserType;

    @ApiModelProperty(value = " 修改时间")
    @TableField("admin_user_update_time")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime adminUserUpdateTime;


    public static final String ADMIN_USER_ID = "admin_user_id";

    public static final String ADMIN_USER_ACCOUNT = "admin_user_account";

    public static final String ADMIN_USER_PASSWORD = "admin_user_password";

    public static final String ADMIN_USER_NAME = "admin_user_name";

    public static final String ADMIN_USER_STATUS = "admin_user_status";

    public static final String ADMIN_USER_CREATE_TIME = "admin_user_create_time";

    public static final String ADMIN_USER_PHONE = "admin_user_phone";

    public static final String ADMIN_USER_ADDRESS = "admin_user_address";

    public static final String ADMIN_USER_TYPE = "admin_user_type";

    public static final String ADMIN_USER_UPDATE_TIME = "admin_user_update_time";


}
